package com.health.db.service.user.impl;

import java.util.List;

import com.health.db.dao.user.IUserCollectFavoriteDao;
import com.health.db.dto.DoctorListDto;
import com.health.db.model.UserCollectFavorite;
import com.health.db.service.user.IUserCollectFavoriteService;

public class UserCollectFavoriteServiceImpl implements IUserCollectFavoriteService {
 
	
	private IUserCollectFavoriteDao userCollectFavoriteDao ;
	@Override
	public int deleteByPrimaryKey(UserCollectFavorite record) {
		
		int result=-1;
		result=userCollectFavoriteDao.deleteByPrimaryKey(record );
		
		return result;
		
	}

	@Override
	public int insert(UserCollectFavorite record) {
		int result=-1;
		result=userCollectFavoriteDao.insert( record);
		
		return result;
	}


	@Override
	public List<DoctorListDto> selectDocListDtoByCollectorId(Long collectorId) {
		
		List<DoctorListDto> list=userCollectFavoriteDao.selectDocListDtoByCollectorId( collectorId);
		return list;
	}

	@Override
	public UserCollectFavorite selectByCollectorIdAndCollectionId(
			Long collectorId, Long collectionId) {
		
		UserCollectFavorite u=userCollectFavoriteDao.selectByCollectorIdAndCollectionId( collectorId, collectionId);
		return u;
	}

	public IUserCollectFavoriteDao getUserCollectFavoriteDao() {
		return userCollectFavoriteDao;
	}

	public void setUserCollectFavoriteDao(
			IUserCollectFavoriteDao userCollectFavoriteDao) {
		this.userCollectFavoriteDao = userCollectFavoriteDao;
	}

	 
 

}
